|
|
|
|
|
|
|
For example, when t = 0, the second, third, and fourth blending functions all have value zero, and the first blending function has value 1. This makes X(0) = Ex1, which agrees with the way the curve was constructed. |
|
|
|
|
|
|
|
|
Figure 11.15 shows a graph of the four blending functions. Notice that all but one of the functions have value zero when t = 0 and when t = 1. Notice also that the first two functions are generally larger than the others. This indicates that the coordinates of the endpoints contribute more to the curve's value than the tangent vectors do. That is why the tangent vector components tend to be quite large for interesting curves. |
|
|
|
|
|
|
|
|
Connecting Hermite Curves |
|
|
|
|
|
|
|
|
To make two Hermite curves meet, you need the curves to share an endpoint. If you want the curves to meet smoothly, you must also make the tangent vectors at that position point in the same direction. |
|
|
|
|
|
|
|
|
Suppose you have a curve with endpoints (Ex1, Ey1) and (Ex2, Ey2) and tangent vectors <Vx1, Vy1> and <Vx2, Vy2>. Suppose you have a second curve with endpoints (Fx1, Fy1) and (Fx2, Fy2) and tangent vectors <Wx1, Wy1> and <Wx2, Wy2>. If you want to connect the second endpoint from the first curve to the first endpoint of the second curve, you need: |
|
|
|
 |
|
|
|
|
Ex2 = Fx1 Ey2 = Fy1 |
|
|
|
|
|
|
|
|
If you want the curves to meet smoothly, you must also ensure that: |
|
|
|
 |
|
|
|
|
Vx2 * Wy1 = Vy2 * Wx1 * k |
|
|
|
|
|
|
|
|
Figure 11.15
Hermite curve blending functions. |
|
|
|
|
|